package com.example.medicalzb.mapper;

import com.example.medicalzb.domain.Sale;
import com.example.medicalzb.entity.SaleEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SaleMapper {
    List<Sale> getAllSale(String name);

    Sale getSaleById(Integer id);

    int saveSale(SaleEntity saleEntity);

    int updateSale(SaleEntity saleEntity);

    int deleteSale(Long id);
}
